package com.collect.tanzania.zhiBean.zhiReceive;

import android.text.TextUtils;

import com.collect.tanzania.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRRepaymentLinkEntity implements Serializable {

    private String link;
    private String url;

    public String getLink() {
        return StringUtil.safeString(link);
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getUrl() {
        return StringUtil.safeString(url);
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getValidUrl() {
        if (!TextUtils.isEmpty(getLink())) {
            return getLink();
        }
        return getUrl();
    }
}
